<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Default Connection Name
    |--------------------------------------------------------------------------
    |
    | Here you may specify which of the connections below you wish to use as
    | your default connection for all work. Of course, you may use many
    | connections at once using the manager class.
    |
    */

    'default' => 'main',

    'strict' => [
        'enable' => false,
        'default' => 0,
    ],

    /*
    |--------------------------------------------------------------------------
    | Middleware...
    |--------------------------------------------------------------------------
    |
    */
   'middleware' => [
        'open' => true,

        // 路由中需要被 decode 的 id
        'route_parameters' => [
            'activity_id',
            'comment_id',
            'signup_id',
        ],

        // 请求参数需要被 decode 的 id
        'request_parameters' => [
            'comment_id',
            'ouid',
            'broadcast_channel_id',
            'utm_bccid',
            'from_zhibo_id',
            'from_audience_id',
            'product_trace_id',
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Hashids Connections
    |--------------------------------------------------------------------------
    |
    | Here are each of the connections setup for your application. Example
    | configuration has been included, but you may add as many connections as
    | you would like.
    |
    */

    'connections' => [
        'main' => [
            'prefix' => env('HASHIDS_MAIN_PREFIX', 'ca'),
            'salt' => env('HASHIDS_MAIN_SALT', 'your-salt-string'),
            'length' => env('HASHIDS_MAIN_LENGTH', 30),
            'alphabet' => env('HASHIDS_MAIN_ALPHABET', 'abcdecfhigklimnopqrsyu'),
        ],
    ],
];
